package com.xiaomei.manager.web.controller;

import java.util.List;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;



import com.xiaomei.manager.service.IOrderService;
import com.xiaomei.manager.web.dto.req.QuantityDto;
import com.xiaomei.manager.web.page.Page;


@Controller
@RequestMapping("/quantity")
public class QuantityController {
	@Autowired
	private IOrderService IOrderService;
	@RequiresPermissions("quantity:view")
	@RequestMapping()
	public String list(Model model,Page<QuantityDto> page) {
		 IOrderService.getQuantity(page);
		model.addAttribute("page", page);
		return "bite/quantity";
	}
	
}
